#include <iostream>
#include <cstdlib>
#include <setjmp.h>
#include <cstring>
#include <stdio.h>
using namespace std; 
int a = 10 ; 
jmp_buf jmpbuffer;
void show(char *s){
	if(strlen(s) == 5)
	{
		a = 11; 
		longjmp(jmpbuffer,1); 
	}
	else{
		cout << s << endl; 
	}
}
int main(){
	char buf[100] = {0} ; 
	if(setjmp(jmpbuffer)!=0){
		cout << " an error \n " ; 
		cout <<  a << endl; 
	}
	
	while( cin.getline(buf,100)){
		show(buf); 
		bzero(buf,100);
	//	cin.clear();
	}
}
